/* by wade.hit@gmail.com */

#ifndef PROTECT_BUDDY_SYSTEM
#define PROTECT_BUDDY_SYSTEM
#include "defines.h"

#define	DISK_ALLOC_FAIL		-1 
#define	DISK_INIT_SUCCESS	 1
#define	DISK_INIT_FAIL		-1
//#define	FREE_LIST_LENGTH	26 
#define	FREE_LIST_NOT_AVAIL	-1

STATE disk_init(INIT_TYPE init_type, char* g_image, char* bitmap_filename, char* buddy_log, int space_max_cnt);
PTR_DISK disk_alloc(int);
void disk_free(PTR_DISK);
void disk_exit();

#endif
